#!/bin/bash

export LC_CTYPE=zh_TW.big5
BASE_DIR=/Users/carfield/Documents/workspace/web_site
JAVA_CMD=java
for files in `ls $BASE_DIR/WEB-INF/lib/|grep jar`; do JARS=$JARS":WEB-INF/lib/$files";done;

$JAVA_CMD -Duser.dir=$BASE_DIR -cp WEB-INF/classes$JARS test.unit.AllTest |mail -s "test result" -F $1
